package Day13.IO;

import javax.imageio.IIOException;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo3 {
    //jdk7版本开始
    public static void main(String[] args) {
        try (FileOutputStream fos = new FileOutputStream("D:\\B.txt");){
            fos.write("江南".getBytes());
        }catch (IOException e){
           e.printStackTrace();
        }





    }
}
